{% extends "base_site.html" %}
{% load static %}

{% block title %}Meetings{% endblock %}

{% block extrahead %}{{ block.super }}
    <script src="{% static 'secr/js/utils.js' %}"></script>
{% endblock %}

{% block breadcrumbs %}{{ block.super }}
    &raquo; Meetings
{% endblock %}

{% block content %}

    <div class="module">
        <h2>Meeting Manager<span class="unlocked"><a href="{% url 'ietf.secr.meetings.views.add' %}" class="addlink">Add</a></span></h2>
        <div class="inline-related">
            <h3><b>Select a meeting to manage</b></h3>

            <br>
            <p>
                Quicklinks:
                {% for meeting in meetings|slice:":5" %}
                    <a href="{% url "ietf.secr.meetings.views.view" meeting_id=meeting.number %}">{{ meeting.number }}</a>
                {% endfor %}
            </p>

            <br>
            <form method="post">{% csrf_token %}
                <table>
                    <tbody>
                     <!-- [html-validate-disable-block wcag/h63 -- FIXME: as_table renders without scope] -->
                    {{ form.as_table }}
                    </tbody>
                </table>
                <button type="submit">Select</button>
            </form>
        </div> <!-- inline-related -->
    </div> <!-- module -->

{% endblock %}